<template>
    <div>
        <el-container class="form-container">
            <el-card class="box-card" shadow="never">
                <div slot="header" class="clearfix">
                    <span>岗位信息</span>
                    <el-button type="primary" size="mini" style="float:right;padding: 6px 9px;" @click="handlerEdit">编辑</el-button>
                </div>
                <div >
                   <el-form  ref="form"   :model="form" size="small" label-width="120px">
                        <el-row>
                            <el-col :span="24">
                                <el-form-item  label="名称">
                                    {{form.fdName}}
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="12">
                                <el-form-item  label="上级部门名称">
                                    {{form.fdParentDeptName}}
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item  label="上级机构名称">
                                    {{form.fdParentOrgName}}
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="12">
                                <el-form-item label="是否有效" prop="fdIsAvaliable" >
                                    <el-switch v-model="form.fdIsAvaliable" disabled/>
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item  label="创建时间" prop="fdCreateTime">
                                    {{form.fdCreateTime |formatDate}}
                                </el-form-item>
                            </el-col>
                        </el-row>
                   </el-form>
                </div>
            </el-card>
        </el-container>
    </div>
</template>
<script>
import {view} from '@/components/mixins/form';
export default {
    name: "sysOrgPostView",
    components: {
    },
    data() {
        return {
            editUrl:'/sys/org/sys_org_post/edit',
            fetchUrl:'/api/sys/org/sys_org_post',
            form: {
                fdIsAvaliable:true,
                fdCreateTime:'',
                fdName:'',
                fdParentOrgName:'',
                fdId:'',
                fdParentDeptId:'',
                fdParentOrgId:'',
                fdParentDeptName:''
            }
        }
    },
    mixins:[view]
}
</script>
<style scoped >
@import "~@/assets/css/form_view.css";
</style>